package com.ruoyi.framework.scanpath;

import java.util.Objects;

/**
 * controller 路径
 * @author yql
 */
public class UrlModel {

    private String url;

    private String method;

    private String desc;

    @Override
    public String toString() {
        return "UrlModel{" +
                "url='" + url + '\'' +
                ", method='" + method + '\'' +
                ", desc='" + desc + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {

        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UrlModel urlModel = (UrlModel) o;
        return Objects.equals(url, urlModel.url) && Objects.equals(method, urlModel.method) && Objects.equals(desc, urlModel.desc);
    }

    @Override
    public int hashCode() {
        return Objects.hash(url, method, desc);
    }

    public UrlModel() {
    }

    public UrlModel(String url, String method, String desc) {
        this.url = url;
        this.method = method;
        this.desc = desc;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
